"use strict";
var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
    if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
        if (ar || !(i in from)) {
            if (!ar) ar = Array.prototype.slice.call(from, 0, i);
            ar[i] = from[i];
        }
    }
    return to.concat(ar || Array.prototype.slice.call(from));
};
Object.defineProperty(exports, "__esModule", { value: true });
var vue_1 = require("vue");
var element_plus_1 = require("element-plus");
var icons_vue_1 = require("@element-plus/icons-vue");
// 定义组件属性
var props = (0, vue_1.defineProps)({
    // 控制弹窗显示/隐藏（Vue3默认v-model属性）
    modelValue: {
        type: Boolean,
        default: false
    },
    // 弹窗宽度
    dialogWidth: {
        type: String,
        default: '900px'
    },
    // 初始报表数据
    initialData: {
        type: Object,
        default: function () { return ({}); }
    }
});
// 定义组件事件
var emits = (0, vue_1.defineEmits)(['update:modelValue', 'close', 'approve', 'reject', 'load-data']);
// 内部可见性变量（解决v-model双向绑定问题）
var dialogVisible = (0, vue_1.ref)(props.modelValue);
// 监听外部v-model变化，同步到内部状态
(0, vue_1.watch)(function () { return props.modelValue; }, function (newVal) {
    dialogVisible.value = newVal;
});
// 监听内部状态变化，同步到外部v-model
(0, vue_1.watch)(function () { return dialogVisible.value; }, function (newVal) {
    emits('update:modelValue', newVal);
});
// 选中的日期
var selectedDate = (0, vue_1.ref)(formatDate(new Date()));
// 报表数据（合并默认数据与传入的初始数据）
var reportData = (0, vue_1.reactive)(__assign({ name: '张明', department: '销售部', position: '销售经理', submitTime: '2024/07/01 18:30', status: '待审核', reviewer: '', reviewTime: '', scheduleList: [
        { time: '9:00', content: '参加部门早会，明确今日销售目标', status: '已完成' },
        { time: '10:00', content: '拜访A客户，洽谈新产品合作', status: '已完成' },
        { time: '11:30', content: '与B客户电话沟通合同细节', status: '已完成' },
        { time: '13:30', content: '整理客户资料，更新CRM系统', status: '已完成' },
        { time: '15:00', content: '团队内部培训，产品知识分享', status: '已完成' },
        { time: '16:30', content: '制定明日工作计划', status: '已完成' }
    ], planList: [
        { name: '品牌销售计划', content: '完成月度销售目标的80%', progress: 85 },
        { name: '品牌回款计划', content: '回收Q2季度30%的应收账款', progress: 60 }
    ], performanceList: [
        { name: '新增客源', count: 8, details: '通过市场活动获取', growth: 15 },
        { name: '新增会员', count: 3, details: 'A客户推荐2人，自然增长1人', growth: 5 },
        { name: '成交情况', count: 2, details: 'B客户年度合同，C客户季度订单', growth: -3 }
    ], summary: '今日顺利完成各项工作计划，重点推进了A客户的新产品合作，预计下周可以签订合同。B客户的合同细节已确认，明日安排签约。团队培训效果良好，成员对新产品知识掌握到位。明日重点跟进C客户的续约事宜。' }, props.initialData));
// 状态样式映射
var statusType = (0, vue_1.computed)(function () {
    var map = {
        '待审核': 'info',
        '已通过': 'success',
        '已驳回': 'danger'
    };
    return map[reportData.status] || 'info';
});
// 表格头部样式
var tableHeaderStyle = {
    'background-color': '#f5f7fa',
    'font-weight': '500',
    'color': '#4e5969'
};
// 格式化日期为YYYY/MM/DD
function formatDate(date) {
    var year = date.getFullYear();
    var month = String(date.getMonth() + 1).padStart(2, '0');
    var day = String(date.getDate()).padStart(2, '0');
    return "".concat(year, "/").concat(month, "/").concat(day);
}
// 加载报表数据
var loadReportData = function () {
    // 触发外部数据加载事件
    emits('load-data', selectedDate.value);
    // 模拟加载效果
    element_plus_1.ElMessage.info("\u6B63\u5728\u52A0\u8F7D ".concat(selectedDate.value, " \u7684\u5DE5\u4F5C\u62A5\u8868"));
    // 实际项目中可替换为真实数据请求
    setTimeout(function () {
        (0, element_plus_1.ElNotification)({
            title: '加载成功',
            message: "\u5DF2\u52A0\u8F7D ".concat(selectedDate.value, " \u7684\u5DE5\u4F5C\u62A5\u8868\u6570\u636E"),
            type: 'success',
            duration: 2000
        });
    }, 800);
};
// 打印报表
var printReport = function () {
    element_plus_1.ElMessage.info('正在准备打印...');
    // 实际项目中调用打印API
};
// 审核通过
var approveReport = function () {
    element_plus_1.ElMessageBox.confirm('确定要审核通过此工作报表吗？', '审核确认', {
        confirmButtonText: '确认',
        cancelButtonText: '取消',
        type: 'success'
    }).then(function () {
        var now = new Date();
        reportData.status = '已通过';
        reportData.reviewer = '李经理';
        reportData.reviewTime = "".concat(formatDate(now), " ").concat(now.toTimeString().slice(0, 5));
        element_plus_1.ElMessage.success('审核已通过');
        emits('approve', {
            date: selectedDate.value,
            reportId: reportData.id
        });
    });
};
// 驳回报表
var rejectReport = function () {
    element_plus_1.ElMessageBox.prompt('请输入驳回原因', '驳回确认', {
        confirmButtonText: '确认',
        cancelButtonText: '取消',
        type: 'warning',
        inputPlaceholder: '请输入驳回原因'
    }).then(function (_a) {
        var value = _a.value;
        if (!value.trim()) {
            element_plus_1.ElMessage.warning('请输入驳回原因');
            return;
        }
        var now = new Date();
        reportData.status = '已驳回';
        reportData.reviewer = '李经理';
        reportData.reviewTime = "".concat(formatDate(now), " ").concat(now.toTimeString().slice(0, 5));
        element_plus_1.ElMessage.success('已成功驳回');
        emits('reject', {
            date: selectedDate.value,
            reportId: reportData.id,
            reason: value
        });
    });
};
// 关闭弹窗
var handleCancel = function () {
    dialogVisible.value = false;
    emits('close');
};
// 弹窗关闭前的回调
var handleBeforeClose = function (done) {
    element_plus_1.ElMessageBox.confirm('确定要关闭工作报表吗？')
        .then(function () {
        done();
        dialogVisible.value = false;
        emits('close');
    })
        .catch(function () {
        // 取消关闭
    });
};
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
var __VLS_ctx = __assign(__assign(__assign(__assign(__assign({}, {}), {}), {}), {}), {});
var __VLS_elements;
var __VLS_components;
var __VLS_directives;
/** @type {__VLS_StyleScopedClasses['section-title']} */ ;
var __VLS_0 = {}.ElDialog;
/** @type {[typeof __VLS_components.ElDialog, typeof __VLS_components.elDialog, typeof __VLS_components.ElDialog, typeof __VLS_components.elDialog, ]} */ ;
// @ts-ignore
ElDialog;
// @ts-ignore
var __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({
    modelValue: (__VLS_ctx.dialogVisible),
    title: "工作报表详情",
    width: (__VLS_ctx.dialogWidth),
    beforeClose: (__VLS_ctx.handleBeforeClose),
    destroyOnClose: true,
}));
var __VLS_2 = __VLS_1.apply(void 0, __spreadArray([{
        modelValue: (__VLS_ctx.dialogVisible),
        title: "工作报表详情",
        width: (__VLS_ctx.dialogWidth),
        beforeClose: (__VLS_ctx.handleBeforeClose),
        destroyOnClose: true,
    }], __VLS_functionalComponentArgsRest(__VLS_1), false));
var __VLS_4 = {};
var __VLS_5 = __VLS_3.slots.default;
// @ts-ignore
[dialogVisible, dialogWidth, handleBeforeClose,];
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "work-report-dialog" }));
var __VLS_6 = {}.ElDatePicker;
/** @type {[typeof __VLS_components.ElDatePicker, typeof __VLS_components.elDatePicker, ]} */ ;
// @ts-ignore
ElDatePicker;
// @ts-ignore
var __VLS_7 = __VLS_asFunctionalComponent(__VLS_6, new __VLS_6(__assign(__assign({ 'onChange': {} }, { modelValue: (__VLS_ctx.selectedDate), type: "date", format: "YYYY/MM/DD", valueFormat: "YYYY/MM/DD", placeholder: "选择日期" }), { class: "date-picker" })));
var __VLS_8 = __VLS_7.apply(void 0, __spreadArray([__assign(__assign({ 'onChange': {} }, { modelValue: (__VLS_ctx.selectedDate), type: "date", format: "YYYY/MM/DD", valueFormat: "YYYY/MM/DD", placeholder: "选择日期" }), { class: "date-picker" })], __VLS_functionalComponentArgsRest(__VLS_7), false));
var __VLS_10;
var __VLS_11;
var __VLS_12 = ({ change: {} },
    { onChange: (__VLS_ctx.loadReportData) });
// @ts-ignore
[selectedDate, loadReportData,];
var __VLS_9;
var __VLS_14 = {}.ElCard;
/** @type {[typeof __VLS_components.ElCard, typeof __VLS_components.elCard, typeof __VLS_components.ElCard, typeof __VLS_components.elCard, ]} */ ;
// @ts-ignore
ElCard;
// @ts-ignore
var __VLS_15 = __VLS_asFunctionalComponent(__VLS_14, new __VLS_14(__assign({ class: "basic-info-card" })));
var __VLS_16 = __VLS_15.apply(void 0, __spreadArray([__assign({ class: "basic-info-card" })], __VLS_functionalComponentArgsRest(__VLS_15), false));
var __VLS_18 = __VLS_17.slots.default;
var __VLS_19 = {}.ElDescriptions;
/** @type {[typeof __VLS_components.ElDescriptions, typeof __VLS_components.elDescriptions, typeof __VLS_components.ElDescriptions, typeof __VLS_components.elDescriptions, ]} */ ;
// @ts-ignore
ElDescriptions;
// @ts-ignore
var __VLS_20 = __VLS_asFunctionalComponent(__VLS_19, new __VLS_19({
    column: "4",
    border: true,
}));
var __VLS_21 = __VLS_20.apply(void 0, __spreadArray([{
        column: "4",
        border: true,
    }], __VLS_functionalComponentArgsRest(__VLS_20), false));
var __VLS_23 = __VLS_22.slots.default;
var __VLS_24 = {}.ElDescriptionsItem;
/** @type {[typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, ]} */ ;
// @ts-ignore
ElDescriptionsItem;
// @ts-ignore
var __VLS_25 = __VLS_asFunctionalComponent(__VLS_24, new __VLS_24({
    label: "姓名",
}));
var __VLS_26 = __VLS_25.apply(void 0, __spreadArray([{
        label: "姓名",
    }], __VLS_functionalComponentArgsRest(__VLS_25), false));
var __VLS_28 = __VLS_27.slots.default;
(__VLS_ctx.reportData.name);
// @ts-ignore
[reportData,];
var __VLS_27;
var __VLS_29 = {}.ElDescriptionsItem;
/** @type {[typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, ]} */ ;
// @ts-ignore
ElDescriptionsItem;
// @ts-ignore
var __VLS_30 = __VLS_asFunctionalComponent(__VLS_29, new __VLS_29({
    label: "部门",
}));
var __VLS_31 = __VLS_30.apply(void 0, __spreadArray([{
        label: "部门",
    }], __VLS_functionalComponentArgsRest(__VLS_30), false));
var __VLS_33 = __VLS_32.slots.default;
(__VLS_ctx.reportData.department);
// @ts-ignore
[reportData,];
var __VLS_32;
var __VLS_34 = {}.ElDescriptionsItem;
/** @type {[typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, ]} */ ;
// @ts-ignore
ElDescriptionsItem;
// @ts-ignore
var __VLS_35 = __VLS_asFunctionalComponent(__VLS_34, new __VLS_34({
    label: "职位",
}));
var __VLS_36 = __VLS_35.apply(void 0, __spreadArray([{
        label: "职位",
    }], __VLS_functionalComponentArgsRest(__VLS_35), false));
var __VLS_38 = __VLS_37.slots.default;
(__VLS_ctx.reportData.position);
// @ts-ignore
[reportData,];
var __VLS_37;
var __VLS_39 = {}.ElDescriptionsItem;
/** @type {[typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, ]} */ ;
// @ts-ignore
ElDescriptionsItem;
// @ts-ignore
var __VLS_40 = __VLS_asFunctionalComponent(__VLS_39, new __VLS_39({
    label: "报表日期",
}));
var __VLS_41 = __VLS_40.apply(void 0, __spreadArray([{
        label: "报表日期",
    }], __VLS_functionalComponentArgsRest(__VLS_40), false));
var __VLS_43 = __VLS_42.slots.default;
(__VLS_ctx.selectedDate);
// @ts-ignore
[selectedDate,];
var __VLS_42;
var __VLS_44 = {}.ElDescriptionsItem;
/** @type {[typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, ]} */ ;
// @ts-ignore
ElDescriptionsItem;
// @ts-ignore
var __VLS_45 = __VLS_asFunctionalComponent(__VLS_44, new __VLS_44({
    label: "提交时间",
}));
var __VLS_46 = __VLS_45.apply(void 0, __spreadArray([{
        label: "提交时间",
    }], __VLS_functionalComponentArgsRest(__VLS_45), false));
var __VLS_48 = __VLS_47.slots.default;
(__VLS_ctx.reportData.submitTime);
// @ts-ignore
[reportData,];
var __VLS_47;
var __VLS_49 = {}.ElDescriptionsItem;
/** @type {[typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, ]} */ ;
// @ts-ignore
ElDescriptionsItem;
// @ts-ignore
var __VLS_50 = __VLS_asFunctionalComponent(__VLS_49, new __VLS_49({
    label: "状态",
}));
var __VLS_51 = __VLS_50.apply(void 0, __spreadArray([{
        label: "状态",
    }], __VLS_functionalComponentArgsRest(__VLS_50), false));
var __VLS_53 = __VLS_52.slots.default;
var __VLS_54 = {}.ElTag;
/** @type {[typeof __VLS_components.ElTag, typeof __VLS_components.elTag, typeof __VLS_components.ElTag, typeof __VLS_components.elTag, ]} */ ;
// @ts-ignore
ElTag;
// @ts-ignore
var __VLS_55 = __VLS_asFunctionalComponent(__VLS_54, new __VLS_54({
    type: (__VLS_ctx.statusType),
}));
var __VLS_56 = __VLS_55.apply(void 0, __spreadArray([{
        type: (__VLS_ctx.statusType),
    }], __VLS_functionalComponentArgsRest(__VLS_55), false));
var __VLS_58 = __VLS_57.slots.default;
// @ts-ignore
[statusType,];
(__VLS_ctx.reportData.status);
// @ts-ignore
[reportData,];
var __VLS_57;
var __VLS_52;
var __VLS_59 = {}.ElDescriptionsItem;
/** @type {[typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, ]} */ ;
// @ts-ignore
ElDescriptionsItem;
// @ts-ignore
var __VLS_60 = __VLS_asFunctionalComponent(__VLS_59, new __VLS_59({
    label: "审核人",
}));
var __VLS_61 = __VLS_60.apply(void 0, __spreadArray([{
        label: "审核人",
    }], __VLS_functionalComponentArgsRest(__VLS_60), false));
var __VLS_63 = __VLS_62.slots.default;
(__VLS_ctx.reportData.reviewer || '-');
// @ts-ignore
[reportData,];
var __VLS_62;
var __VLS_64 = {}.ElDescriptionsItem;
/** @type {[typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, ]} */ ;
// @ts-ignore
ElDescriptionsItem;
// @ts-ignore
var __VLS_65 = __VLS_asFunctionalComponent(__VLS_64, new __VLS_64({
    label: "审核时间",
}));
var __VLS_66 = __VLS_65.apply(void 0, __spreadArray([{
        label: "审核时间",
    }], __VLS_functionalComponentArgsRest(__VLS_65), false));
var __VLS_68 = __VLS_67.slots.default;
(__VLS_ctx.reportData.reviewTime || '-');
// @ts-ignore
[reportData,];
var __VLS_67;
var __VLS_22;
var __VLS_17;
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "report-section" }));
__VLS_asFunctionalElement(__VLS_elements.h3, __VLS_elements.h3)(__assign({ class: "section-title" }));
var __VLS_69 = {}.ElTable;
/** @type {[typeof __VLS_components.ElTable, typeof __VLS_components.elTable, typeof __VLS_components.ElTable, typeof __VLS_components.elTable, ]} */ ;
// @ts-ignore
ElTable;
// @ts-ignore
var __VLS_70 = __VLS_asFunctionalComponent(__VLS_69, new __VLS_69(__assign(__assign({ data: (__VLS_ctx.reportData.scheduleList), border: true, stripe: true }, { class: "content-table" }), { headerCellStyle: (__VLS_ctx.tableHeaderStyle) })));
var __VLS_71 = __VLS_70.apply(void 0, __spreadArray([__assign(__assign({ data: (__VLS_ctx.reportData.scheduleList), border: true, stripe: true }, { class: "content-table" }), { headerCellStyle: (__VLS_ctx.tableHeaderStyle) })], __VLS_functionalComponentArgsRest(__VLS_70), false));
var __VLS_73 = __VLS_72.slots.default;
// @ts-ignore
[reportData, tableHeaderStyle,];
var __VLS_74 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_75 = __VLS_asFunctionalComponent(__VLS_74, new __VLS_74({
    label: "时间",
    prop: "time",
    width: "100",
    align: "center",
}));
var __VLS_76 = __VLS_75.apply(void 0, __spreadArray([{
        label: "时间",
        prop: "time",
        width: "100",
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_75), false));
var __VLS_79 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_80 = __VLS_asFunctionalComponent(__VLS_79, new __VLS_79({
    label: "行程内容",
    prop: "content",
    align: "left",
}));
var __VLS_81 = __VLS_80.apply(void 0, __spreadArray([{
        label: "行程内容",
        prop: "content",
        align: "left",
    }], __VLS_functionalComponentArgsRest(__VLS_80), false));
var __VLS_84 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_85 = __VLS_asFunctionalComponent(__VLS_84, new __VLS_84({
    label: "完成情况",
    prop: "status",
    width: "120",
    align: "center",
}));
var __VLS_86 = __VLS_85.apply(void 0, __spreadArray([{
        label: "完成情况",
        prop: "status",
        width: "120",
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_85), false));
var __VLS_88 = __VLS_87.slots.default;
{
    var __VLS_89 = __VLS_87.slots.default;
    var scope = __VLS_getSlotParameters(__VLS_89)[0];
    var __VLS_90 = {}.ElTag;
    /** @type {[typeof __VLS_components.ElTag, typeof __VLS_components.elTag, typeof __VLS_components.ElTag, typeof __VLS_components.elTag, ]} */ ;
    // @ts-ignore
    ElTag;
    // @ts-ignore
    var __VLS_91 = __VLS_asFunctionalComponent(__VLS_90, new __VLS_90({
        type: (scope.row.status === '已完成' ? 'success' : 'info'),
    }));
    var __VLS_92 = __VLS_91.apply(void 0, __spreadArray([{
            type: (scope.row.status === '已完成' ? 'success' : 'info'),
        }], __VLS_functionalComponentArgsRest(__VLS_91), false));
    var __VLS_94 = __VLS_93.slots.default;
    (scope.row.status);
    var __VLS_93;
}
var __VLS_87;
var __VLS_72;
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "report-section" }));
__VLS_asFunctionalElement(__VLS_elements.h3, __VLS_elements.h3)(__assign({ class: "section-title" }));
var __VLS_95 = {}.ElTable;
/** @type {[typeof __VLS_components.ElTable, typeof __VLS_components.elTable, typeof __VLS_components.ElTable, typeof __VLS_components.elTable, ]} */ ;
// @ts-ignore
ElTable;
// @ts-ignore
var __VLS_96 = __VLS_asFunctionalComponent(__VLS_95, new __VLS_95(__assign(__assign({ data: (__VLS_ctx.reportData.planList), border: true, stripe: true }, { class: "content-table" }), { headerCellStyle: (__VLS_ctx.tableHeaderStyle) })));
var __VLS_97 = __VLS_96.apply(void 0, __spreadArray([__assign(__assign({ data: (__VLS_ctx.reportData.planList), border: true, stripe: true }, { class: "content-table" }), { headerCellStyle: (__VLS_ctx.tableHeaderStyle) })], __VLS_functionalComponentArgsRest(__VLS_96), false));
var __VLS_99 = __VLS_98.slots.default;
// @ts-ignore
[reportData, tableHeaderStyle,];
var __VLS_100 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_101 = __VLS_asFunctionalComponent(__VLS_100, new __VLS_100({
    label: "计划名称",
    prop: "name",
    width: "160",
    align: "center",
}));
var __VLS_102 = __VLS_101.apply(void 0, __spreadArray([{
        label: "计划名称",
        prop: "name",
        width: "160",
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_101), false));
var __VLS_105 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_106 = __VLS_asFunctionalComponent(__VLS_105, new __VLS_105({
    label: "计划内容",
    prop: "content",
    align: "left",
}));
var __VLS_107 = __VLS_106.apply(void 0, __spreadArray([{
        label: "计划内容",
        prop: "content",
        align: "left",
    }], __VLS_functionalComponentArgsRest(__VLS_106), false));
var __VLS_110 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_111 = __VLS_asFunctionalComponent(__VLS_110, new __VLS_110({
    label: "完成进度",
    prop: "progress",
    width: "160",
    align: "center",
}));
var __VLS_112 = __VLS_111.apply(void 0, __spreadArray([{
        label: "完成进度",
        prop: "progress",
        width: "160",
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_111), false));
var __VLS_114 = __VLS_113.slots.default;
{
    var __VLS_115 = __VLS_113.slots.default;
    var scope = __VLS_getSlotParameters(__VLS_115)[0];
    var __VLS_116 = {}.ElProgress;
    /** @type {[typeof __VLS_components.ElProgress, typeof __VLS_components.elProgress, ]} */ ;
    // @ts-ignore
    ElProgress;
    // @ts-ignore
    var __VLS_117 = __VLS_asFunctionalComponent(__VLS_116, new __VLS_116({
        percentage: (scope.row.progress),
        strokeWidth: "6",
        status: (scope.row.progress === 100 ? 'success' : undefined),
    }));
    var __VLS_118 = __VLS_117.apply(void 0, __spreadArray([{
            percentage: (scope.row.progress),
            strokeWidth: "6",
            status: (scope.row.progress === 100 ? 'success' : undefined),
        }], __VLS_functionalComponentArgsRest(__VLS_117), false));
}
var __VLS_113;
var __VLS_98;
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "report-section" }));
__VLS_asFunctionalElement(__VLS_elements.h3, __VLS_elements.h3)(__assign({ class: "section-title" }));
var __VLS_121 = {}.ElTable;
/** @type {[typeof __VLS_components.ElTable, typeof __VLS_components.elTable, typeof __VLS_components.ElTable, typeof __VLS_components.elTable, ]} */ ;
// @ts-ignore
ElTable;
// @ts-ignore
var __VLS_122 = __VLS_asFunctionalComponent(__VLS_121, new __VLS_121(__assign(__assign({ data: (__VLS_ctx.reportData.performanceList), border: true, stripe: true }, { class: "content-table" }), { headerCellStyle: (__VLS_ctx.tableHeaderStyle) })));
var __VLS_123 = __VLS_122.apply(void 0, __spreadArray([__assign(__assign({ data: (__VLS_ctx.reportData.performanceList), border: true, stripe: true }, { class: "content-table" }), { headerCellStyle: (__VLS_ctx.tableHeaderStyle) })], __VLS_functionalComponentArgsRest(__VLS_122), false));
var __VLS_125 = __VLS_124.slots.default;
// @ts-ignore
[reportData, tableHeaderStyle,];
var __VLS_126 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_127 = __VLS_asFunctionalComponent(__VLS_126, new __VLS_126({
    label: "统计项",
    prop: "name",
    width: "160",
    align: "center",
}));
var __VLS_128 = __VLS_127.apply(void 0, __spreadArray([{
        label: "统计项",
        prop: "name",
        width: "160",
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_127), false));
var __VLS_131 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_132 = __VLS_asFunctionalComponent(__VLS_131, new __VLS_131({
    label: "数量",
    prop: "count",
    width: "100",
    align: "center",
}));
var __VLS_133 = __VLS_132.apply(void 0, __spreadArray([{
        label: "数量",
        prop: "count",
        width: "100",
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_132), false));
var __VLS_136 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_137 = __VLS_asFunctionalComponent(__VLS_136, new __VLS_136({
    label: "详情",
    prop: "details",
    align: "left",
}));
var __VLS_138 = __VLS_137.apply(void 0, __spreadArray([{
        label: "详情",
        prop: "details",
        align: "left",
    }], __VLS_functionalComponentArgsRest(__VLS_137), false));
var __VLS_141 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_142 = __VLS_asFunctionalComponent(__VLS_141, new __VLS_141({
    label: "同比变化",
    prop: "growth",
    width: "120",
    align: "center",
}));
var __VLS_143 = __VLS_142.apply(void 0, __spreadArray([{
        label: "同比变化",
        prop: "growth",
        width: "120",
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_142), false));
var __VLS_145 = __VLS_144.slots.default;
{
    var __VLS_146 = __VLS_144.slots.default;
    var scope = __VLS_getSlotParameters(__VLS_146)[0];
    __VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)(__assign({ class: (scope.row.growth > 0 ? 'growth-up' : 'growth-down') }));
    (scope.row.growth > 0 ? '+' : '');
    (scope.row.growth);
}
var __VLS_144;
var __VLS_124;
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "report-section" }));
__VLS_asFunctionalElement(__VLS_elements.h3, __VLS_elements.h3)(__assign({ class: "section-title" }));
var __VLS_147 = {}.ElCard;
/** @type {[typeof __VLS_components.ElCard, typeof __VLS_components.elCard, typeof __VLS_components.ElCard, typeof __VLS_components.elCard, ]} */ ;
// @ts-ignore
ElCard;
// @ts-ignore
var __VLS_148 = __VLS_asFunctionalComponent(__VLS_147, new __VLS_147(__assign({ class: "summary-card" })));
var __VLS_149 = __VLS_148.apply(void 0, __spreadArray([__assign({ class: "summary-card" })], __VLS_functionalComponentArgsRest(__VLS_148), false));
var __VLS_151 = __VLS_150.slots.default;
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "summary-content" }));
(__VLS_ctx.reportData.summary || '无小结内容');
// @ts-ignore
[reportData,];
var __VLS_150;
{
    var __VLS_152 = __VLS_3.slots.footer;
    var __VLS_153 = {}.ElButton;
    /** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
    // @ts-ignore
    ElButton;
    // @ts-ignore
    var __VLS_154 = __VLS_asFunctionalComponent(__VLS_153, new __VLS_153(__assign({ 'onClick': {} })));
    var __VLS_155 = __VLS_154.apply(void 0, __spreadArray([__assign({ 'onClick': {} })], __VLS_functionalComponentArgsRest(__VLS_154), false));
    var __VLS_157 = void 0;
    var __VLS_158 = void 0;
    var __VLS_159 = ({ click: {} },
        { onClick: (__VLS_ctx.handleCancel) });
    var __VLS_160 = __VLS_156.slots.default;
    // @ts-ignore
    [handleCancel,];
    var __VLS_156;
    var __VLS_161 = {}.ElButton;
    /** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
    // @ts-ignore
    ElButton;
    // @ts-ignore
    var __VLS_162 = __VLS_asFunctionalComponent(__VLS_161, new __VLS_161(__assign({ 'onClick': {} }, { type: "primary" })));
    var __VLS_163 = __VLS_162.apply(void 0, __spreadArray([__assign({ 'onClick': {} }, { type: "primary" })], __VLS_functionalComponentArgsRest(__VLS_162), false));
    var __VLS_165 = void 0;
    var __VLS_166 = void 0;
    var __VLS_167 = ({ click: {} },
        { onClick: (__VLS_ctx.printReport) });
    var __VLS_168 = __VLS_164.slots.default;
    // @ts-ignore
    [printReport,];
    var __VLS_169 = {}.ElIcon;
    /** @type {[typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, ]} */ ;
    // @ts-ignore
    ElIcon;
    // @ts-ignore
    var __VLS_170 = __VLS_asFunctionalComponent(__VLS_169, new __VLS_169({}));
    var __VLS_171 = __VLS_170.apply(void 0, __spreadArray([{}], __VLS_functionalComponentArgsRest(__VLS_170), false));
    var __VLS_173 = __VLS_172.slots.default;
    var __VLS_174 = {}.Printer;
    /** @type {[typeof __VLS_components.Printer, ]} */ ;
    // @ts-ignore
    icons_vue_1.Printer;
    // @ts-ignore
    var __VLS_175 = __VLS_asFunctionalComponent(__VLS_174, new __VLS_174({}));
    var __VLS_176 = __VLS_175.apply(void 0, __spreadArray([{}], __VLS_functionalComponentArgsRest(__VLS_175), false));
    var __VLS_172;
    var __VLS_164;
    if (__VLS_ctx.reportData.status === '待审核') {
        // @ts-ignore
        [reportData,];
        var __VLS_179 = {}.ElButton;
        /** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
        // @ts-ignore
        ElButton;
        // @ts-ignore
        var __VLS_180 = __VLS_asFunctionalComponent(__VLS_179, new __VLS_179(__assign({ 'onClick': {} }, { type: "success" })));
        var __VLS_181 = __VLS_180.apply(void 0, __spreadArray([__assign({ 'onClick': {} }, { type: "success" })], __VLS_functionalComponentArgsRest(__VLS_180), false));
        var __VLS_183 = void 0;
        var __VLS_184 = void 0;
        var __VLS_185 = ({ click: {} },
            { onClick: (__VLS_ctx.approveReport) });
        var __VLS_186 = __VLS_182.slots.default;
        // @ts-ignore
        [approveReport,];
        var __VLS_182;
    }
    if (__VLS_ctx.reportData.status === '待审核') {
        // @ts-ignore
        [reportData,];
        var __VLS_187 = {}.ElButton;
        /** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
        // @ts-ignore
        ElButton;
        // @ts-ignore
        var __VLS_188 = __VLS_asFunctionalComponent(__VLS_187, new __VLS_187(__assign({ 'onClick': {} }, { type: "danger" })));
        var __VLS_189 = __VLS_188.apply(void 0, __spreadArray([__assign({ 'onClick': {} }, { type: "danger" })], __VLS_functionalComponentArgsRest(__VLS_188), false));
        var __VLS_191 = void 0;
        var __VLS_192 = void 0;
        var __VLS_193 = ({ click: {} },
            { onClick: (__VLS_ctx.rejectReport) });
        var __VLS_194 = __VLS_190.slots.default;
        // @ts-ignore
        [rejectReport,];
        var __VLS_190;
    }
}
var __VLS_3;
/** @type {__VLS_StyleScopedClasses['work-report-dialog']} */ ;
/** @type {__VLS_StyleScopedClasses['date-picker']} */ ;
/** @type {__VLS_StyleScopedClasses['basic-info-card']} */ ;
/** @type {__VLS_StyleScopedClasses['report-section']} */ ;
/** @type {__VLS_StyleScopedClasses['section-title']} */ ;
/** @type {__VLS_StyleScopedClasses['content-table']} */ ;
/** @type {__VLS_StyleScopedClasses['report-section']} */ ;
/** @type {__VLS_StyleScopedClasses['section-title']} */ ;
/** @type {__VLS_StyleScopedClasses['content-table']} */ ;
/** @type {__VLS_StyleScopedClasses['report-section']} */ ;
/** @type {__VLS_StyleScopedClasses['section-title']} */ ;
/** @type {__VLS_StyleScopedClasses['content-table']} */ ;
/** @type {__VLS_StyleScopedClasses['report-section']} */ ;
/** @type {__VLS_StyleScopedClasses['section-title']} */ ;
/** @type {__VLS_StyleScopedClasses['summary-card']} */ ;
/** @type {__VLS_StyleScopedClasses['summary-content']} */ ;
var __VLS_export = (await Promise.resolve().then(function () { return require('vue'); })).defineComponent({
    emits: {},
    props: {
        // 控制弹窗显示/隐藏（Vue3默认v-model属性）
        modelValue: {
            type: Boolean,
            default: false
        },
        // 弹窗宽度
        dialogWidth: {
            type: String,
            default: '900px'
        },
        // 初始报表数据
        initialData: {
            type: Object,
            default: function () { return ({}); }
        }
    },
});
exports.default = {};
